package kr.saeildamil.androidstudy.ch12;

import java.util.ArrayList;

import kr.saeildamil.androidstudy.R;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;

public class ListOfViews extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch12_listviewtest);
		
		ArrayList<ListItemEx> arList = new ArrayList<ListItemEx>();
		arList.add(new ListItemEx(0, "제목", "입력내용", "", 0));
		arList.add(new ListItemEx(1, "", "", "push", R.drawable.ic_launcher	));
		arList.add(new ListItemEx(0, "이름을 입력하시오", "니 이름", "", 0));
		arList.add(new ListItemEx(0, "나이도 입력하시오", "몇살이니", "", 0));
		arList.add(new ListItemEx(1, "", "", "누르시오", R.drawable.ic_launcher));
		arList.add(new ListItemEx(1, "", "", "업로드", R.drawable.ic_launcher));
		arList.add(new ListItemEx(0, "주소", "어디사니?", "", 0));
		
		MultiAdapter adapter = new MultiAdapter(this, arList);
		
		ListView list = (ListView) findViewById(R.id.ch12_listviewtest_list);
		list.setAdapter(adapter);
		
	}
}
